<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户组管理</title> <#include "/WEB-INF/content/module-edit.html">
<script type="text/javascript">
var sysStatus = [
     		<#list map["status"] as sysStatus>
     		<#if sysStatus_index!=0>
     		,
     		</#if>
               {"id":"${sysStatus.ecode}","text":"${sysStatus.ename}"}
     		</#list>
     ];
$(function() {
	$("#status").combobox({
		valueField : 'id',
		textField : 'text',
		editable:false,
		required:true,
		data:sysStatus
	}); 
});
</script>
 
</head>
<body class="easyui-layout">
	<div region="north" id="toolbar"
		style="background-color: #eee; padding: 5px; overflow: hidden;"
		border="false">
		<#if object.code?exists&&object.code!=""> <@auth
		code="sys:group:update"><a href="#" class="easyui-linkbutton"
			plain="true" iconCls="icon-add" style="border: 1px solid #ccc"
			onclick="javascript:save()">保存</a></@auth> <#else> <@auth
		code="sys:group:create"><a href="#" class="easyui-linkbutton"
			plain="true" iconCls="icon-add" style="border: 1px solid #ccc"
			onclick="javascript:save()">保存</a></@auth> </#if><a
			href="#" class="easyui-linkbutton" plain="true" iconCls="icon-edit"
			style="border: 1px solid #ccc" onclick="javascript:cancel()">关闭</a>
	</div>
	<div region="center">
		<div id="p" class="easyui-panel"
			style="background: #fafafa; padding: 10px" fit="true"
			toolbar="#toolbar">
			<form id="form" method="post">
				<table class="form" cellspacing="0" style="width: 100%">
					<tbody style="border: 1px solid #ccc">
						<tr style="display: none;">
							<td colspan="6">
								<input id="_id" name="_id" value="${object.code!}">
								<input id="code" name="code" value="${object.code!}">
							</td>
						</tr>
						<tr>
							<td class="label">名称：</td>
							<td>
								<input id="groupName" style="width: 95%;" name="groupName" class="easyui-validatebox" required="true" value="${object.groupName!}" /></td>
							<td class="validate">*</td>
							<td class="label">状态：</td>
							<td><input id="status" name="status" value="${object.status!'ENABLE'}" /></td>
							<td class="validate">*</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</body>
</html>